package cn.chencaiju.exception;


public class ServiceException extends RuntimeException {
	private int code;

	public ServiceException(int code) {
		super();
		this.setCode(code);
	}
	
	public ServiceException(int code, String msg) {
		super(msg);
		
		this.setCode(code);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
